Add the ability to run and upload with PlatformIO and add a build test#39
Open
Add the ability to run and upload with PlatformIO and add a build test#39
Conversation
Contributor
Author
|
@Claegtun this should be good to review now. build test builds and a version has been tested on NUSense. |
added 2 commits
April 21, 2026 17:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For the uninitiated: https://platformio.org/
Simultaneously working in VSCode and STM32CubeIDE was annoying me, so I added the required files to use a brilliant VS-Code extension called PlatformIO which essentially acts as CubeIDE within VSCode (yes I know there's an STM extension for VSCode, don't @ me). PlatformIO exposes a one click compile and upload button, is brilliantly cross-platform, and is set up for embedded STM32 projects like NUSense. Note: should you want to, you can absolutely still use STM32CubeIDE like before - this is an additional tool on the side.
I've tested that this compiles and uploads onto the NUSense using an ST-Link V2.
Using a nice little tool that handles uploads and builds also means that we can write a build test for every commit, which is what I've put in here.
This will come with a NUbook entry when I get around to it.